package com.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.entity.Notification;

public interface NotificationService extends IService<Notification> {
    
    /**
     * 获取用户通知列表
     */
    Page<Notification> getUserNotifications(Long userId, Integer pageNum, Integer pageSize);
    
    /**
     * 获取用户未读通知数量
     */
    Integer getUnreadCount(Long userId);
    
    /**
     * 标记通知为已读
     */
    boolean markAsRead(Long notificationId, Long userId);
    
    /**
     * 标记所有通知为已读
     */
    boolean markAllAsRead(Long userId);
    
    /**
     * 创建通知
     */
    boolean createNotification(Notification notification);
} 